﻿namespace JH
{
    /// <summary>
    ///  溢出模式
    /// </summary>
    public enum OverflowMode
    {
        /// <summary>
        /// 丢弃最早添加的元素
        /// </summary>
        DiscardOldestAdd,

        /// <summary>
        ///  丢弃最新添加的元素
        /// </summary>
        DiscardNewestAdd,

        /// <summary>
        ///  丢弃首个元素
        /// </summary>
        DiscardFirst,

        /// <summary>
        ///  丢弃末尾元素
        /// </summary>
        DiscardLast,

        /// <summary>
        ///  抛出异常
        /// </summary>
        ThrowException
    }
}